package com.kgc.service;

import com.kgc.bean.GoodsCarinfo;
import com.kgc.bean.User;
import com.kgc.util.ReturnResult;


import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface CarService {
    //1.加入购物车功能

    ReturnResult<Map<String,Object>> addToShoppingCart(GoodsCarinfo goodsCarinfo, User user, HttpServletRequest request,String goodsId,Integer businessid);
    //2.查看购物车功能

    ReturnResult<Map<String,Object>> checkTheShoppingCart(User user,String goodsId,Integer businessid);
    //3.删除购物车某个商品

    ReturnResult<Map<String,Object>> deleteAnItemInTheShoppingCart(String goodsId, User user);

    //4.清空购物车

    ReturnResult<Map<String,Object>> emptyShoppingCart(User user,String goodsId,Integer businessid);



}
